package com.yjps.system.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by jessy on 2015/8/21.
 */
 /*码表类*/
@Entity
@Table(name = "t_codetype")
public class CodeType extends BaseModel{
   /*码表类名*/
    @Column(name = "codetype_name")
    private String codetypeName;
    /*码表描述*/
    @Column(name = "codetype_description")
    private String codetypeDescription;
    @Column(name = "codetype_state",columnDefinition="INT default 1")
    private int codetypeState;

    @Transient
    private String viewName;

    public String getCodetypeName() {
        return codetypeName;
    }

    public void setCodetypeName(String codetypeName) {
        this.codetypeName = codetypeName;
    }

    public String getCodetypeDescription() {
        return codetypeDescription;
    }

    public void setCodetypeDescription(String codetypeDescription) {
        this.codetypeDescription = codetypeDescription;
    }

    public int getCodetypeState() {
        return codetypeState;
    }

    public void setCodetypeState(int codetypeState) {
        this.codetypeState = codetypeState;
    }

    public String getViewName() {
        return viewName;
    }

    public void setViewName(String viewName) {
        this.viewName = viewName;
    }
}
